-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(salesforcedx-vscode): update node to v16 and switch from npm to yarn #4042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool looks good 👍 Any ideas on why the circle build is failing? The error looks familiar but I don't remember the details of what results in that error.
npm WARN config production Use `--omit=dev` instead.
ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error
Think we need to update the packing script to account for the above warning?
vsce package doesn't work with npm 8 or 7 (microsoft/vscode-vsce#580, microsoft/vscode-vsce#439, microsoft/vscode-vsce#673, lerna/lerna#2822) even on node 14.
|
Bundle size / validityBaseline (vsce + npm prune)To compare with baseline, the vsix files buit with vsce & npm (from develop@ 6782d42)
Yarnvsce packaging seems to work with yarn (without any patches) - but the vsix bundle sizes are significantly lower than those produced with npm. Quick smoke test with the vsix files shows errors and extensions not working as intended.
With esbuild
Update vsceUsing latest vsce version 2.7.0 (or 2.6.1) results in error from package that doesn't need to be packaged - microsoft/vscode-vsce#675
Other potential solutions
|
as it has issues with the tsconfig used by tsc build with project ref
b892421
to
d96e324
Compare
Broken up into smaller PRs |
What does this PR do?
Update to npm v8 which is bundled with Node v16Rebased on build: add typescript project references #4055What issues does this PR fix or reference?
@W-11004197@
Functionality Before
Functionality After
npm v8 and lockfile format v3Notes
npm run reinstall
after merge (remind team in slack)Summary
vsce package --yarn
does not include not-hoisted deep dependency microsoft/vscode-vsce#432)Solutions
PNPM
Pros
TODO
Packaging vsix fix
Messages.importMessagesDirectory(__dirname);
fromnode_modules/@salesforce/core/lib/exported.js
--main-fields=module,main
dist/
for rollup,out/
for tsc ?Build fix
npm ci
in yarnError: Cannot find module
Path contains invalid characters: C:\Users\circleci\project\packages\salesforcedx-utils-vscode\coverage\lcov-report\out\src\cli\webpack:\salesforcedx-utils-vscode
Error: ENOENT: no such file or directory, stat 'c:\Users\circleci\project\packages\system-tests\assets\sfdx-simple\.vscode'
Refactor
@tsignore
clean
andreinstall
scriptDocument / share
Explore